package com.sokal.easycare.modules.contract.dao;

import com.sokal.easycare.common.persistence.CrudDao;
import com.sokal.easycare.common.persistence.annotation.MyBatisDao;
import com.sokal.easycare.modules.contract.entity.ContractInfo;

/**
 * 合同信息DAO接口
 * 
 * @author liliangdong
 * @version 2017-04-10
 */
@MyBatisDao
public interface ContractInfoDao extends CrudDao<ContractInfo> {

	/**
	 * 更新合同状态
	 * 
	 * @param contractInfo
	 * @return
	 */
	public int updateState(ContractInfo contractInfo);

	/**
	 * 查询合同信息
	 * 
	 * @param contractInfo
	 * @return
	 */
	public ContractInfo getContractInfo(ContractInfo contractInfo);
	
	/**
	 * 更新用户签名信息
	 * @param contractInfo
	 * @return
	 */
	public int updateSignature(ContractInfo contractInfo);

}